package com.sbpm.crmbpm.client.panels;

import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer;
import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer;

public class FormLine extends HBoxLayoutContainer
{

    public FormLine( Widget field1, Widget field2 )
    {
        HBoxLayoutContainer.BoxLayoutData field1Data = new BoxLayoutContainer.BoxLayoutData();
        field1Data.setFlex( 1 );
        field1Data.setMargins( new Margins( 0, 10, 0, 0 ) );

        add( field1, field1Data );

        HBoxLayoutContainer.BoxLayoutData field2Data = new BoxLayoutContainer.BoxLayoutData();
        field2Data.setFlex( 1 );

        add( field2, field2Data );

    }
}
